
local excel = require 'libxl.excel'

ac.excel = excel:load()

ac.game:on "游戏-热更新" ( function() 
    ac.excel = excel:load()
end )

function load_excel(path,name)
    local excel1 = ac.excel[path]
    if not excel1 then
        print('没有表格',path)
        return {}
    end
    if name then
        local data = excel1[name]
        if not data then
            print('没有表格页面',path,name)
            return {}
        end
        return data
    else
        return excel1
    end
end

return ac.excel